public class ConcreteControlCenter extends ControlCenter{
    public ConcreteControlCenter(String Name) {
        this.TeamName = Name;
    }
    public void notifyObserver(String name) {

        for(IObserver obs : players) {
            if (!(obs.getName().equalsIgnoreCase(null))) {
                System.out.println(this.TeamName + "的队员" + (obs).getName() + "遭受敌人攻击！");
            }
        }
    }

}
